package com.gdqy.FCS.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gdqy.FCS.dao.InformationDao;
import com.gdqy.FCS.entity.Information;

@Service
@Transactional
public class InformationService {
	@Autowired
	private InformationDao informationDao;

	public int insert(Information information){
		return informationDao.insert(information);
	}
	
	public List<Information> selectByCount(){
		return informationDao.selectByCount();
	}

	public int selectCountByRelease_id(int release_id){
		return informationDao.selectCountByRelease_id(release_id);

	}
	
	public List<Information> selectByUser_id(int user_id){
		return informationDao.selectByUser_id(user_id);
	}
	
	public int selectAllCount(){
		return informationDao.selectAllCount();
	}
	
	public Information selectById(int information_id){
		return informationDao.selectById(information_id);
	}
	
	public List<Information> selectByTime(){
		return informationDao.selectByTime();
	}
	
	public List<Information> selectByType_code(String type_code){
		return informationDao.selectByType_code(type_code);
	}
	
	public List<Information> selectByStatusAndTpye_code(String status,String type_code){
		return informationDao.selectByStatusAndTpye_code(status,type_code);
	}
	
	public int update(Information information) {
		return informationDao.update(information);
	}
	
	public int deleteById(int information_id) {
		return informationDao.deleteById(information_id);
	}
}
